﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterAdmin.Master" AutoEventWireup="true" CodeBehind="QuanLyTinh.aspx.cs" Inherits="EC21_EDiamond.QuanLyTinh" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <table style="width: 100%;">
        <tr>
            <td colspan="2" class="text-center" style="font-size: xx-large; color: #0000FF"><strong>QUẢN LÝ TỈNH</strong></td>
        </tr>

          <tr>
            <td style="width: 405px; text-align: right;" class="text-right">Tên tỉnh:</td>
            <td>
                <asp:TextBox ID="txtTenTinh" runat="server" Width="170px" placeholder="Tên tỉnh"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtTenTinh" ErrorMessage="Không để trống!" style="color: #FF0000"></asp:RequiredFieldValidator>
            </td>
        </tr>
        
        <tr>
            <td style="width: 405px; text-align: right;" class="text-right">Phí vận chuyển:</td>
            <td>
                <asp:TextBox ID="txtPhiVanChuyen" runat="server" Width="170px" placeholder="Phí vận chuyển"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="txtPhiVanChuyen" ErrorMessage="Không để trống!" style="color: #FF0000"></asp:RequiredFieldValidator>
            </td>
        </tr>
       

         <tr>
            <td style="width: 385px; height: 48px;" class="text-right">
            </td>
            <td style="height: 48px">
                <asp:Button ID="btnCapNhat" runat="server" Text="Cập Nhật" OnClick="btnCapNhat_Click" Width="122px" />
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                </td>
        </tr>
        <tr>
            <td style="height: 48px; text-align: center;" class="text-right" colspan="2">
                <asp:GridView ID="grwDanhSachTinh" runat="server" AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" GridLines="None"  style="text-align: left" Width="500px" OnSelectedIndexChanging="grwDanhSachTinh_SelectedIndexChanging">
                    <AlternatingRowStyle BackColor="White" />
                    <Columns>
                        <asp:CommandField ShowSelectButton="True" SelectText="Chọn" />
                        <asp:BoundField DataField="matinh" HeaderText="Mã tỉnh" />
                        <asp:BoundField DataField="tentinh" HeaderText="Tên tỉnh" />
                        <asp:BoundField DataField="phivanchuyen" HeaderText="Phí vận chuyển" />

                    </Columns>
                    <EditRowStyle BackColor="#2461BF" />
                    <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                    <RowStyle BackColor="#EFF3FB" />
                    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                    <SortedAscendingCellStyle BackColor="#F5F7FB" />
                    <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                    <SortedDescendingCellStyle BackColor="#E9EBEF" />
                    <SortedDescendingHeaderStyle BackColor="#4870BE" />
                </asp:GridView>
            </td>
        </tr>
    </table>
</asp:Content>
